using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chapter13
{
    class Program
    {
        delegate int MyFunc(int args);
        static void Main(string[] args)
        {
            MyFunc fun = delegate(int x) { return x * 2; };
            Console.WriteLine("{0}", fun(7));
        } 
    }
}
